import Vue from 'vue'
import Router from 'vue-router'

import login from '@/components/login'                         //登录
import forget from '@/components/forget'                       //忘记密码
import rewrite from '@/components/rewrite'                     //修改密码
import home from '@/components/home'                           //系统首页
import ebgrade from '@/components/ebgrade'                     //EBUC交易
import grade from '@/components/grade'                         //现金积分交易
import currency from '@/components/currency'                   //注册币兑换
import ebwallet from '@/components/ebwallet'                   //EBUC钱包
import integralwallet from '@/components/integralwallet'       //现金积分钱包
import backshop from '@/components/backshop'                   //回购钱包
import registercoin from '@/components/registercoin'           //注册币
import activecode from '@/components/activecode'               //激活码
import register from '@/components/register'                   //注册
import active from '@/components/active'                       //激活
import update from '@/components/update'                       //升级
import formcenter from '@/components/formcenter'               //报单中心
import member from '@/components/member'                       //会员结构
import recommendlist from '@/components/recommendlist'         //推荐列表
import news from '@/components/news'                           //实时新闻
import basicmessage from '@/components/basicmessage'           //基本信息
import loginpassword from '@/components/loginpassword'         //登陆密码设置
import safepassword from '@/components/safepassword'           //安全密码设置
import tradelist from '@/components/tradelist'                 //交易中心 挂卖；挂买；挂买-卖出；挂卖-买入
import gradelist from '@/components/gradelist'                 //现金积分交易 挂卖；买入；截图
import newsdetail from '@/components/newsdetail'               //新闻详情
import index from '@/components/index'                         //导航
import product from '@/components/product'                     //产品列表
import sendmes from '@/components/sendmes'                     //站内信
import sendwrite from '@/components/sendwrite'                 //写信
import moneylist from '@/components/moneylist'                 //注册币转出和回购钱包跳转页面
import myorder from '@/components/myorder'                     //我的订单


Vue.use(Router)
export default new Router({
  routes: [
      {
      path: '/',
      component: login
    },{
      path: '/login',
      name: 'login',
      component: login
    },{
      path: '/forget',
      name: 'forget',
      component: forget
    },{
      path: '/rewrite',
      name: 'rewrite',
      component: rewrite
    },{
      path: '/index',
      name: 'index',
      component: index,
      children: [
        {
          path: '/home',
          name: 'home',
          component: home
        }, {
          path: '/ebgrade',
          name: 'ebgrade',
          component: ebgrade
        }, {
          path: '/grade',
          name: 'grade',
          component: grade
        }, {
          path: '/currency',
          name: 'currency',
          component: currency
        }, {
          path: '/ebwallet',
          name: 'ebwallet',
          component: ebwallet
        }, {
          path: '/integralwallet',
          name: 'integralwallet',
          component: integralwallet
        }, {
          path: '/backshop',
          name: 'backshop',
          component: backshop
        }, {
          path: '/registercoin',
          name: 'registercoin',
          component: registercoin
        }, {
          path: '/activecode',
          name: 'activecode',
          component: activecode
        }, {
          path: '/register',
          name: 'register',
          component: register
        }, {
          path: '/active',
          name: 'active',
          component: active
        }, {
          path: '/update',
          name: 'update',
          component: update
        }, {
          path: '/formcenter',
          name: 'formcenter',
          component: formcenter
        }, {
          path: '/member',
          name: 'member',
          component: member
        }, {
          path: '/recommendlist',
          name: 'recommendlist',
          component: recommendlist
        }, {
          path: '/news',
          name: 'news',
          component: news
        }, {
          path: '/basicmessage',
          name: 'basicmessage',
          component: basicmessage
        }, {
          path: '/loginpassword',
          name: 'loginpassword',
          component: loginpassword
        }, {
          path: '/safepassword',
          name: 'safepassword',
          component: safepassword
        }, {
          path: '/tradelist',
          name: 'tradelist',
          component: tradelist
        }, {
          path: '/gradelist',
          name: 'gradelist',
          component: gradelist
        }, {
          path: '/newsdetail',
          name: 'newsdetail',
          component: newsdetail
        }, {
          path: '/product',
          name: 'product',
          component: product
        }, {
          path: '/sendmes',
          name: 'sendmes',
          component: sendmes
        },{
          path: '/sendwrite',
          name: 'sendwrite',
          component: sendwrite
        }, {
          path: '/moneylist',
          name: 'moneylist',
          component: moneylist
        }, {
          path: '/myorder',
          name: 'myorder',
          component: myorder
        }
      ]
    }   
  ]
})
